auto-play and layout adjustments