Fixed presentation of slide view controller when iPad is in landscape

Partial fix #819
Fixed calculation of frame.