modified config for landscape orientation (not working on ios before)