Fix opening and closing slides

Make them always fit in the display