Compact pipeline valve