adjust layout for video gallery