fixed incorrect resizing behavior with any other than 1st selected slide