restrict height width in slide show