How to hide sidebar preview (on the right) in Finder on El Capitan
This is called Preview.

Type Shift+Command+p to turn it either on or off.

Alternatively open Finder's View menu and select Hide Preview / Show Preview.