modify index and picture layout